package com.java2018.springmvc.book.model;

import com.java2018.springmvc.author.model.Author;

import java.util.Date;

public class BookType {
    private String id;
    private String typeName; //类型名
    private Date createTime; //创建时间
    private Author createBy; //创建自谁
    private Date updateTime; //更新时间
    private Author updateBy; //更新自谁

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Author getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Author createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Author getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Author updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        return "BookType{" +
                "id='" + id + '\'' +
                ", typeName='" + typeName + '\'' +
                ", createTime=" + createTime +
                ", createBy=" + createBy +
                ", updateTime=" + updateTime +
                ", updateBy=" + updateBy +
                '}';
    }
}
